package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 归档信息
 * 
 * @author exde
 *
 */
@Entity
@Table(name = "sl_wcsi_archive")
public class ArchiveInfo extends Root {

	// 处理人
	@ManyToOne()
	@JoinColumn(name = "dealUserId")
	private User dealer;
	// 归档人
	@ManyToOne()
	@JoinColumn(name = "archiveUserId")
	private User archiver;
	@ManyToOne()
	@JoinColumn(name = "registerId")
	private EventRegister register;
	private String photourl;
	private Date archeveDate;
	private String content;
	private String memo;
	@Column(columnDefinition="double default 0")
	private double longtitude;//事件完结时的位置
	@Column(columnDefinition="double default 0")
	private double latitude;//事件完结时的位置
	private String archiveAddr;//位置描述
	

	public double getLongtitude() {
		return longtitude;
	}

	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getArchiveAddr() {
		return archiveAddr;
	}

	public void setArchiveAddr(String archiveAddr) {
		this.archiveAddr = archiveAddr;
	}

	public User getDealer() {
		return dealer;
	}

	public void setDealer(User dealer) {
		this.dealer = dealer;
	}

	public User getArchiver() {
		return archiver;
	}

	public EventRegister getRegister() {
		return register;
	}

	public void setRegister(EventRegister register) {
		this.register = register;
	}

	public void setArchiver(User archiver) {
		this.archiver = archiver;
	}

	public String getPhotourl() {
		return photourl;
	}

	public void setPhotourl(String photourl) {
		this.photourl = photourl;
	}

	public Date getArcheveDate() {
		return archeveDate;
	}

	public void setArcheveDate(Date archeveDate) {
		this.archeveDate = archeveDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
